<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2021 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// Core English language pack
return [
    // System error messages
    'Undefined variable'                                        => 'Undefined variable',
    'Undefined index'                                           => 'Undefined array index',
    'Undefined offset'                                          => 'Undefined array offset',
    'Parse error'                                               => 'Parse error',
    'Type error'                                                => 'Type error',
    'Fatal error'                                               => 'Fatal error',
    'syntax error'                                              => 'Syntax error',

    // Framework core error messages
    'dispatch type not support'                                 => 'Dispatch type not supported',
    'method param miss'                                         => 'Method parameter error',
    'method not exists'                                         => 'Method does not exist',
    'function not exists'                                       => 'Function does not exist',
    'app not exists'                                            => 'Application does not exist',
    'controller not exists'                                     => 'Controller does not exist',
    'class not exists'                                          => 'Class does not exist',
    'property not exists'                                       => 'Class property does not exist',
    'template not exists'                                       => 'Template file does not exist',
    'illegal controller name'                                   => 'Illegal controller name',
    'illegal action name'                                       => 'Illegal action name',
    'url suffix deny'                                           => 'URL suffix access denied',
    'Undefined cache config'                                    => 'Cache configuration undefined',
    'Route Not Found'                                           => 'Current access route undefined or not matched',
    'Undefined db config'                                       => 'Database configuration undefined',
    'Undefined log config'                                      => 'Log configuration undefined',
    'Undefined db type'                                         => 'Database type undefined',
    'variable type error'                                       => 'Variable type error',
    'PSR-4 error'                                               => 'PSR-4 specification error',
    'not support type'                                          => 'Pagination index field type not supported',
    'not support total'                                         => 'Cannot get total data in simple mode',
    'not support last'                                          => 'Cannot get last page in simple mode',
    'error session handler'                                     => 'Error SESSION handler class',
    'not allow php tag'                                         => 'Template does not allow PHP syntax',
    'not support'                                               => 'Not supported',
    'database config error'                                     => 'Database configuration error',
    'redisd master'                                             => 'Redisd master server error',
    'redisd slave'                                              => 'Redisd slave server error',
    'must run at sae'                                           => 'Must run on SAE',
    'memcache init error'                                       => 'Memcache service not enabled, please initialize Memcache service in SAE management platform',
    'KVDB init error'                                           => 'KVDB not initialized, please initialize KVDB service in SAE management platform',
    'fields not exists'                                         => 'Database table field does not exist',
    'where express error'                                       => 'Query expression error',
    'no data to update'                                         => 'No data to update',
    'miss data to insert'                                       => 'Missing data to insert',
    'miss complex primary data'                                 => 'Missing composite primary key data',
    'miss update condition'                                     => 'Missing update condition',
    'model data Not Found'                                      => 'Model data not found',
    'table data not Found'                                      => 'Table data not found',
    'delete without condition'                                  => 'Delete operation will not execute without condition',
    'miss relation data'                                        => 'Missing relation table data',
    'tag attr must'                                             => 'Template tag attribute must',
    'tag error'                                                 => 'Template tag error',
    'cache write error'                                         => 'Cache write failed',
    'sae mc write error'                                        => 'SAE mc write error',
    'route name not exists'                                     => 'Route identifier does not exist (or insufficient parameters)',
    'invalid request'                                           => 'Invalid request',
    'bind attr has exists'                                      => 'Model attribute already exists',
    'relation data not exists'                                  => 'Relation data does not exist',
    'relation not support'                                      => 'Relation not supported',
    'chunk not support order'                                   => 'Chunk does not support order method',
    'route pattern error'                                       => 'Route variable rule definition error',
    'route behavior will not support'                           => 'Route behavior deprecated (use middleware instead)',
    'closure not support cache(true)'                           => 'Closure query does not support cache(true), please specify cache key',

    // Upload error messages
    'unknown upload error'                                      => 'Unknown upload error!',
    'file write error'                                          => 'File write failed!',
    'upload temp dir not found'                                 => 'Upload temp directory not found!',
    'no file to uploaded'                                       => 'No file uploaded!',
    'only the portion of file is uploaded'                      => 'Only portion of file uploaded!',
    'upload File size exceeds the maximum value'                => 'Upload file size exceeds maximum value!',
    'upload write error'                                        => 'File upload save error!',
    'has the same filename: {:filename}'                        => 'File with same name exists: {:filename}',
    'upload illegal files'                                      => 'Illegal upload file',
    'illegal image files'                                       => 'Illegal image file',
    'extensions to upload is not allowed'                       => 'Upload file extension not allowed',
    'mimetype to upload is not allowed'                         => 'Upload file MIME type not allowed!',
    'filesize not match'                                        => 'Upload file size does not match!',
    'directory {:path} creation failed'                         => 'Directory {:path} creation failed!',

    'The middleware must return Response instance'              => 'Middleware method must return Response object instance',
    'The queue was exhausted, with no response returned'        => 'Middleware queue is empty',
    // Validate Error Message
    ':attribute require'                                        => ':attribute cannot be empty',
    ':attribute must'                                           => ':attribute must',
    ':attribute must be numeric'                                => ':attribute must be numeric',
    ':attribute must be integer'                                => ':attribute must be integer',
    ':attribute must be float'                                  => ':attribute must be float',
    ':attribute must be bool'                                   => ':attribute must be boolean',
    ':attribute not a valid email address'                      => ':attribute format is invalid',
    ':attribute not a valid mobile'                             => ':attribute format is invalid',
    ':attribute must be a array'                                => ':attribute must be an array',
    ':attribute must be yes,on or 1'                            => ':attribute must be yes, on or 1',
    ':attribute not a valid datetime'                           => ':attribute is not a valid date or time format',
    ':attribute not a valid file'                               => ':attribute is not a valid upload file',
    ':attribute not a valid image'                              => ':attribute is not a valid image file',
    ':attribute must be alpha'                                  => ':attribute can only contain letters',
    ':attribute must be alpha-numeric'                          => ':attribute can only contain letters and numbers',
    ':attribute must be alpha-numeric, dash, underscore'        => ':attribute can only contain letters, numbers, underscore and dash',
    ':attribute not a valid domain or ip'                       => ':attribute is not a valid domain or IP',
    ':attribute must be chinese'                                => ':attribute can only contain Chinese characters',
    ':attribute must be chinese or alpha'                       => ':attribute can only contain Chinese characters and letters',
    ':attribute must be chinese,alpha-numeric'                  => ':attribute can only contain Chinese characters, letters and numbers',
    ':attribute must be chinese,alpha-numeric,underscore, dash' => ':attribute can only contain Chinese characters, letters, numbers, underscore and dash',
    ':attribute not a valid url'                                => ':attribute is not a valid URL',
    ':attribute not a valid ip'                                 => ':attribute is not a valid IP address',
    ':attribute must be dateFormat of :rule'                    => ':attribute must use date format :rule',
    ':attribute must be in :rule'                               => ':attribute must be in :rule range',
    ':attribute be notin :rule'                                 => ':attribute cannot be in :rule range',
    ':attribute must between :1 - :2'                           => ':attribute must be between :1 - :2',
    ':attribute not between :1 - :2'                            => ':attribute cannot be between :1 - :2',
    'size of :attribute must be :rule'                          => ':attribute length does not meet requirement :rule',
    'max size of :attribute must be :rule'                      => ':attribute length cannot exceed :rule',
    'min size of :attribute must be :rule'                      => ':attribute length cannot be less than :rule',
    ':attribute cannot be less than :rule'                      => ':attribute date cannot be less than :rule',
    ':attribute cannot exceed :rule'                            => ':attribute date cannot exceed :rule',
    ':attribute not within :rule'                               => 'Not within valid period :rule',
    'access IP is not allowed'                                  => 'IP access not allowed',
    'access IP denied'                                          => 'IP access denied',
    ':attribute out of accord with :2'                          => ':attribute does not match confirmation field :2',
    ':attribute cannot be same with :2'                         => ':attribute cannot be same as comparison field :2',
    ':attribute must greater than or equal :rule'               => ':attribute must be greater than or equal to :rule',
    ':attribute must greater than :rule'                        => ':attribute must be greater than :rule',
    ':attribute must less than or equal :rule'                  => ':attribute must be less than or equal to :rule',
    ':attribute must less than :rule'                           => ':attribute must be less than :rule',
    ':attribute must equal :rule'                               => ':attribute must equal :rule',
    ':attribute has exists'                                     => ':attribute already exists',
    ':attribute not conform to the rules'                       => ':attribute does not conform to the rules',
    'invalid Request method'                                    => 'Invalid request method',
    'invalid token'                                             => 'Invalid token data',
    'not conform to the rules'                                  => 'Rule error',
    'record has update'                                         => 'Record has been updated',
    // adminapi.validate.goods.CategoryValidate
    'id_required'                                               => 'ID is required',
    'name_required'                                             => 'Name is required',

    // adminapi.validate.goods.SpecValidate
    'id_number'                                                 => 'ID must be a number',
    'name_max'                                                  => 'Name cannot exceed 255 characters',
    'rule_value_required'                                       => 'Specification configuration is required',
    'rule_value_array'                                          => 'Specification configuration must be an array',
    'status_in'                                                 => 'Invalid status value',
    'sort_number'                                               => 'Sort must be a number',

    // adminapi.validate.goods.TagValidate
    'name_unique'                                               => 'Tag name already exists',
    'sort_egt'                                                  => 'Sort must be greater than or equal to 0',
    'status_number'                                             => 'Status must be a number',
    'description_max'                                           => 'Description cannot exceed 255 characters',

    // adminapi.validate.setting.CollectionAccountValidate
    'collection_account_name_required'                          => 'Interface name is required',
    'collection_account_params_required'                        => 'Account information is required',

    // adminapi.validate.setting.CollectionValidate
    'collection_name_required'                                  => 'Gateway name is required',
    'collection_code_required'                                  => 'Code interface is required',
    'collection_show_name_required'                             => 'Display name is required',
    'collection_account_fields_required'                        => 'Account fields are required',

    // adminapi.validate.setting.MenuValidate
    'menu_title_required'                                       => 'Menu title is required',
    'menu_path_required'                                        => 'Menu path is required',
    'menu_component_required'                                   => 'Menu component is required',
    'menu_icon_required'                                        => 'Menu icon is required',
    'menu_orderNo_required'                                     => 'Menu order is required',
    'menu_perms_required'                                       => 'Menu permission is required',
    'menu_type_required'                                        => 'Please select menu type',
    'menu_redirect_required'                                    => 'Top-level directory requires a redirect path',

    // adminapi.validate.setting.PayTypeValidate
    'pay_type_name_required'                                    => 'Name is required',
    'pay_type_ico_required'                                     => 'Icon is required',

    // adminapi.validate.user.LevelValidate
    'min_points_required'                                       => 'Minimum points is required',
    'min_points_number'                                         => 'Minimum points must be a number',
    'min_points_egt'                                            => 'Minimum points must be greater than or equal to 0',
    'max_points_required'                                       => 'Maximum points is required',
    'max_points_number'                                         => 'Maximum points must be a number',
    'max_points_egt'                                            => 'Maximum points must be greater than or equal to 0',
    'icon_max'                                                  => 'Icon path cannot exceed 255 characters',

    // adminapi.validate.user.PointsValidate
    'user_id_required'                                          => 'User ID is required',
    'user_id_number'                                            => 'User ID must be a number',
    'points_required'                                           => 'Points are required',
    'points_number'                                             => 'Points must be a number',
    'type_required'                                             => 'Type is required',
    'type_max'                                                  => 'Type cannot exceed 30 characters',
    'remark_max'                                                => 'Remark cannot exceed 255 characters',

    // adminapi.validate.user.SignValidate
    'sign_date_date'                                            => 'Invalid date format',

    // adminapi.validate.user.VipValidate
    'vip_name_required'                                         => 'Name is required',
    'vip_name_max'                                              => 'Name cannot exceed 50 characters',
    'price_required'                                            => 'Price is required',
    'price_float'                                               => 'Price must be a float',
    'price_egt'                                                 => 'Price must be greater than or equal to 0',
    'duration_required'                                         => 'Duration is required',
    'duration_number'                                           => 'Duration must be a number',
    'duration_egt'                                              => 'Duration must be at least 1 day',
    'points_reward_required'                                    => 'Points reward is required',
    'points_reward_number'                                      => 'Points reward must be a number',
    'points_reward_egt'                                         => 'Points reward must be greater than or equal to 0',
    'exclusive_content_in'                                      => 'Invalid exclusive content access parameter',
    'vip_level_id_required'                                     => 'VIP level ID is required',
    'vip_level_id_number'                                       => 'VIP level ID must be a number',
    'record_id_required'                                        => 'Record ID is required',
    'record_id_number'                                          => 'Record ID must be a number',

    // adminapi.validate.Base
    'validate_scene_required'                                   => 'Validation scenario is required',

    // adminapi.validate.LoginValidate
    'username_required'                                         => 'Please enter username',
    'password_required'                                         => 'Please enter password',
    'goods_not_exists'                                          => 'Goods not exits',
];
